	<div class="hide"><?php ini_map()?></div>
	<div class="main-media">
<?php $posts = query_posts($query_string.'&showposts='.get('ini_media_num').'') ?>
<?php while (have_posts()):the_post(); ?>
		<article class="post-list bd"<?php if(get('ini_no_thumb')) echo " style=height:250px"?>>
			<?php
$custom_fields = get_post_custom_keys();
$music = get_post_meta( $post->ID, 'music', true );
$video = get_post_meta( $post->ID, 'video', true );
if( !get('ini_mark') ) :
if( !in_array('video',$custom_fields) ) echo get_img(320, 170);
if( in_array('video',$custom_fields) ){
	$video_code = do_shortcode( '[video]'.$video.'[/video]' );
	$video_img = ini_thumb(320, 170, 1);
	$video_output = preg_replace( '/<\/div>/i', $video_img.'</div>', $video_code );
	echo $video_output;
}
?> 
			<section class="media-post">
				<h2><?php ini_title(0,0,0)?></h2>
<?php if( !get('ini_no_thumb') || !in_array('video',$custom_fields) ){ echo '				<div class="post-entry">'; ini_excerpt(180); echo "</div>\n";} endif?>
			</section>
			<?php if( in_array('music',$custom_fields) ) : echo do_shortcode( '[music]'.$music.'[/music]' ); else: echo '<div class="info">'; if( get('ini_rate') ) fancyratings(); else echo '<span><i class="icon-time"></i>&nbsp;<time datetime="'.get_the_time('Y-m-d').'">'.get_the_time('Y-m-d').'</time></span>'; echo '<span class="views"><i class="icon-eye-open"></i>&nbsp;'.get_post_views($post->ID).' ℃</span>'; echo edit_post_link('编辑文章', '<span><i class="icon-edit"></i>&nbsp;', '</span>') . '</div>'; endif?> 
		</article>
<?php endwhile?>
	</div>
	<div class="clear"></div>
	<div class="main" style="margin:0 0 10px">
<?php
if( get('ini_media_num') && $obj_key == $ini_key ){ $posts_per_page = get('ini_media_num');}
if (get('ini_ad6')){ echo "		<div class=\"ad6\">".get('ini_ad6_code')."</div>\n";}
pagination( $query_string, $posts_per_page, 1 );
?>
</div>
<script src="js/audioplayer.js"></script>
<script>$.support.leadingWhitespace&&$(function(){$('audio').audioPlayer();})</script>